import fetch from "@/utils/fetch.js";

//待处理列表
export function myCaseList(data) {
  return fetch({
    url: `/case/myCaseList`,
    method: "POST",
    data: data,
  });
}

//增补案件列表
export function todoCaseList(data) {
  return fetch({
    url: `/case/todoCaseList`,
    method: "POST",
    data: data,
  });
}

//获取案件详情
export function xiepeicaseInfo(data) {
  return fetch({
    url: `/case/xiepeiCaseInfo`,
    method: "POST",
    data: data,
  });
}
//更新详情照片
export function loadCaseImgs(data) {
  return fetch({
    url: `/case/loadCaseImgs`,
    method: "POST",
    data: data,
  });
}
//案件详情图片下载本地
export function imgDownload(data) {
  return fetch({
    url: `/case/imgDownload`,
    method: "POST",
    data: data,
  });
}

//案件详情图片下载本地
export function newImgInclude(data) {
  return fetch({
    url: `/case/newImgInclude`,
    method: "POST",
    data: data,
  });
}

//详情修改保存
export function xiepeiUpdateCaseInfo(data) {
  return fetch({
    url: `/case/xiepeiUpdateCaseInfo`,
    method: "POST",
    data: data,
  });
}

// 图片删除
export function imgDelete(data) {
  return fetch({
    url: `/case/imgDelete`,
    method: "POST",
    data: data,
  });
}

// 图片退回
export function stackImg(data) {
  return fetch({
    url: `/case/newModifyCiapTaskType`,
    method: "POST",
    data: data,
  });
}

//案件完成
export function xiepeiUpdateCaseStatus(data) {
  return fetch({
    url: `/case/xiepeiUpdateCaseStatus`,
    method: "POST",
    data: data,
  });
}

// 添加增补
export function zbCase(data) {
  return fetch({
    url: `/case/zbCase`,
    method: "POST",
    data: data,
  });
}

// 新增增补案件
export function xiePeiCreateTask(data) {
  return fetch({
    url: `/case/xiePeiCreateTask`,
    method: "POST",
    data: data,
  });
}

// 获取案件查询列表
export function searchCaseList(data) {
  return fetch({
    url: `/case/searchCaseList`,
    method: "POST",
    data: data,
  });
}

// 获取案件清单列表
export function staticCaseList(data) {
  return fetch({
    url: `/case/staticCaseList`,
    method: "POST",
    data: data,
  });
}

// 删除案件
export function xiepeiCaseDelete(data) {
  return fetch({
    url: `/case/xiepeiCaseDelete`,
    method: "POST",
    data: data,
  });
}

// 平移案件
export function caseTransfer(data) {
  return fetch({
    url: `/case/caseTransfer`,
    method: "POST",
    data: data,
  });
}
// 案件查询下载
export function xiepeiExportCaseList(data) {
  return fetch({
    url: `/case/xiepeiExportCaseList`,
    method: "POST",
    data: data,
    isExcel: true,
  });
}

// 案件清单excel下载
export function xiepeiExportStaticList(data) {
  return fetch({
    url: `/case/xiepeiExportStaticList`,
    method: "POST",
    data: data,
    isExcel: true,
  });
}

// 案件清单照片下载
export function fetchTaskImageZip(data) {
  return fetch({
    url: `/case/fetchTaskImageZip`,
    method: "POST",
    data: data,
  });
}

// 获取案件上传状态列表
export function findCiapTaskStatusList(data) {
  return fetch({
    url: `/case/findCiapTaskStatusList`,
    method: "POST",
    data: data,
  });
}

// 获取数据统计
export function casefetchStatistics(data) {
  return fetch({
    url: `/case/fetchStatistics`,
    method: "POST",
    data: data,
  });
}

// 数据统计导出
export function casefetchStatisticsExport(data) {
  return fetch({
    url: `/case/fetchStatisticsExport`,
    method: "POST",
    data: data,
    isExcel: true,
  });
}

// 重新上传
export function taskFeedback(data) {
  return fetch({
    url: `/case/taskFeedback`,
    method: "POST",
    data: data,
  });
}

// 重新上传
export function imgAgainInclude(data) {
  return fetch({
    url: `/case/imgAgainInclude`,
    method: "POST",
    data: data,
  });
}
